package com.xing.service.load;

import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.boot.CommandLineRunner;
import org.springframework.core.annotation.Order;
import org.springframework.stereotype.Component;

import java.util.Arrays;

/**
 * Created by Bradish7Y on 2017/8/21.
 * 加载数据(在Application.run()执行前)
 */

@Component
@Order(1)
public class LoadDataCommandLineRunner implements CommandLineRunner {
    public static final Logger log = LoggerFactory.getLogger(LoadDataCommandLineRunner.class);

    @Override
    public void run(String... args) {
        log.info("load data from XXX, args:{}", Arrays.toString(args));
    }

}